<?php
if( !defined('IN_INDEX') )
{
	printError("ACCESS DENIED", "This page is hidden.");
	exit;
}

// Name defenition for tables
define('USERS_TABLE', 'users');
define('PM_TABLE', 'user_pm');
define('EX_CAT_TABLE', 'exercise_category');
define('EXERCISE_TABLE', 'exercise_name');
define('LIFT_TABLE', 'lifts');
define('TRAINING_TABLE', 'training');
define('TRAINING_CAT_TABLE', 'training_category');
define('COMMENTS_TABLE', 'comments');
define('FRIENDS_TABLE', 'user_friends');
define('SETTINGS_TABLE', 'settings');
define('NEWS_TABLE', 'news');
define('NEWS_CAT_TABLE', 'news_category');
define('GROUPS_TABLE', 'groups');
define('GROUPS_JOINED_TABLE', 'groups_joined');
define('GYM_TABLE', 'tbl_gym');
define('AWARD_TABLE', 'award');

// Array of month names
$MONTHS = array(
	'january',
	'february',
	'march',
	'april',
	'may',
	'june',
	'july',
	'august',
	'september',
	'october',
	'november',
	'december'
);

// DB connect info
/*
$dbhost = "localhost";
$dbuser = "walgermo";
$dbpasswd = "volospau";
$dbname = "walgermo_demo";
*/
$dbhost = "localhost";
$dbuser = "root";
$dbpasswd = "";
//$dbname = "trenningsplassen";
$dbname = "thepowerlifters";
// Session name
$SESSION_NAME = "ThePowerlifters";

// Session length
$CONFIG['session_timeout'] = 1*60*30;

// Default language
$CONFIG['default_lang'] = "lang_en";

// Comment settings
$CONFIG['post_time_delay'] = 20; // in seconds
$CONFIG['comment_edit_timer'] = 0; // in minutes, -1 (no delete possible), 0 (no timer)

// Default date formats
$CONFIG['date_format'] = "d.m.Y";
$CONFIG['date_format_long'] = "d.m.Y @ H:i:s";
$CONFIG['date_format_week'] = "W.Y";
$CONFIG['date_format_month'] = "m.F";
$CONFIG['date_format_year'] = "Y";

// Used for showing and removing 19 ->(th)<- on other languanges than english.
$CONFIG['date_format_blogarchive']['en'] = "jS";
$CONFIG['date_format_blogarchive']['no'] = "j."; // "l jS" to include day. However day is added seperatly to be able to translate to different languages

// User data path
$CONFIG['user_data_path'] = "user_data/";
?>